package top.healthylife.gateway.platform.zd.api.api.querydownloadfilebynum;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.zd.api.utils.ZdHttpUtil;
import top.healthylife.gateway.platform.zd.dto.querydownloadfilebynum.req.ZdReqQueryDownLoadFileByNumDto;
import top.healthylife.gateway.platform.zd.dto.querydownloadfilebynum.res.ZdResQueryDownLoadFileByNumDto;

/**
 * @author : GaoZeXi
 * @date 2022/1/11 16:32
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20, apiName = "按登记证明编号下载登记证明文件和附件接口", info = "第三方通过该接口实现按登记证明编号下载该笔登记的登记证明及附件。")
public class ZdQueryDownLoadFileByNumApi implements ParentFace<ZdReqQueryDownLoadFileByNumDto, ZdResQueryDownLoadFileByNumDto> {
    static final String SERVICE_NAME = "queryDownLoadFileByNum";

    @Override
    public ZdResQueryDownLoadFileByNumDto execute(ZdReqQueryDownLoadFileByNumDto t) {
        return ZdHttpUtil.httpRequest(t, SERVICE_NAME, ZdResQueryDownLoadFileByNumDto.class);
    }
}
